package com.nian.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 轮播表
 * </p>
 *
 * @author zhangmj
 * @since 2020-04-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AppSwiperImages对象", description="轮播表")
public class AppSwiperImages extends Model<AppSwiperImages> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "数据主键")
      @TableId(value = "swiper_id", type = IdType.AUTO)
    private Integer swiperId;

    @ApiModelProperty(value = "终端类型，1：PC，2：移动端，3：安卓，4：IOS")
    private Integer terminalType;

    @ApiModelProperty(value = "轮播图类型，1:图片,2:音频,3:视频")
    private Integer swiperType;

    @ApiModelProperty(value = "页面类型，1:首页")
    private Integer pageType;

    @ApiModelProperty(value = "链接类型，0:不使用link，1:使用link_url跳转，默认为0")
    private Integer linkType;

    @ApiModelProperty(value = "链接地址")
    private String linkUrl;

    @ApiModelProperty(value = "图片或视频ID")
    private Long fileId;

    @ApiModelProperty(value = "图片或视频URL")
    private String fileUrl;

    @ApiModelProperty(value = "权重值")
    private Integer weight;

    @ApiModelProperty(value = "状态，0:未上架，1:已上架，2:已下架, 3:已发布")
    private Integer state;

    @ApiModelProperty(value = "发布时间，发布后前端可以看到")
    private LocalDateTime releaseTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "删除标识，0:正常，1:删除；")
    private Integer deleteFlag;


    @Override
    protected Serializable pkVal() {
        return this.swiperId;
    }

}
